package cn.sirun.com.fca.car.status.view;

import android.app.Activity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.TranslateAnimation;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;

import com.tencent.cloud.iov.flow.view.IContentViewContainer;

import java.util.ArrayList;
import java.util.List;

import cn.sirun.com.fca.car.status.R;
import cn.sirun.com.fca.car.status.adapter.CarStatusAdapter;
import cn.sirun.com.fca.car.status.listener.MyItemLongClickListener;
import cn.sirun.com.fca.car.status.model.CarStatusData;
import cn.sirun.com.fca.car.status.presenter.ICarStatusPresenter;


public class ScanCarStatusView extends CarStatusBaseLoadingFlowView {


    private ImageView sacimg;

    public ScanCarStatusView(Activity activity) {
        super(activity);
    }

    public ScanCarStatusView(Activity activity, IContentViewContainer container) {
        super(activity, container);

    }
    @Override
    public void onCreate() {
        super.onCreate();

        View view = LayoutInflater.from(getContext())
                .inflate(R.layout.check_car_status_activity, null, false);
        setContentView(view);

        sacimg = view.findViewById(R.id.iv_scan_car_img);

        // 从左到右的平移动画
        Animation horizontalAnimation = new TranslateAnimation(2, 560, 2, 2);
        horizontalAnimation.setDuration(3000); // 动画持续时间
        horizontalAnimation.setRepeatCount(Animation.INFINITE); // 无限循环INFINITE

        //播放动画
        sacimg.setAnimation(horizontalAnimation);
        horizontalAnimation.start();

    }

    @Override
    protected ICarStatusPresenter createPresenter() {
        return null;
    }
}
